<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">分享标题</label>
						<div class="am-u-sm-9">
							<input type="text" name="share_title" value="{$info.share_title}" placeholder="请输入分享标题">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">分享描述</label>
						<div class="am-u-sm-9">
							<textarea class="" rows="5" name="share_desc" placeholder="请输入分享描述">{$info.share_desc}</textarea>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">分享链接</label>
						<div class="am-u-sm-9">
							<input type="text" name="share_url" value="{$info.share_url}" placeholder="http://">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">分享图片</label>
						<div class="am-u-sm-9">
							<div class="am-u-sm-8" style="padding-left: 0px;">
								<input type="text" name="share_logo" class="am-input-sm thumb" value="{$info.share_logo}">
	
							</div>
							<div class="am-u-sm-2">
								<img id="hy-thumb"  style="height: 30px;" {if $info.share_logo}src="{$info.share_logo}" {else} src="{$_C.hy_path}images/logo2.png" {/if}>
							</div>
							<div class="am-u-sm-2 am-u-end">
								<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg">上传</button>
							</div>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">分享标识</label>
						<div class="am-u-sm-9">
							<input type="text" name="share_code" value="{$info.share_code}" placeholder="请输入唯一的英文标识">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">备注</label>
						<div class="am-u-sm-9">
							<textarea class="" rows="5" name="share_msg" placeholder="请输入备注说明">{$info.share_msg}</textarea>
						</div>
					</div>
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="{$id}">
							<button type="button" class="am-btn am-btn-primary hy-js-submit">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript">
			hy_uploadimg('/share',{},function(result,_this){
		    	if(typeof(result[0])!='undefined')
		    	{
		        	_this.parent().parent().find('#hy-thumb').attr('src',result[0]);
		        	_this.parent().parent().find('input.thumb').val(result[0]).focus();
		       }
		    })
			hy_submit('index.php?g=admin&m=wxShare&a={$action}');
		</script>
	</body>

</html>